package cn.edu.ctbu.kcsj.repository;

import cn.edu.ctbu.kcsj.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherRepository extends JpaRepository <Teacher,Integer> {
    List<Teacher> findByTno(Integer username);

    /**
     * 按工号和密码查询
     * @param tno
     * @param password
     * @return
     */
    List<Teacher> findByTnoAndTpassword(Integer tno,String password);

}
